package com.itbaizhan.pojo;

import java.util.ArrayList;
import java.util.List;

//商品
public class Items {
    private  int itemid;
    private String itemname;
    private double itemprice;
    private int itemnum;
//关联Orders, 一种商品可以被多个订单拥有
    private List<Orders> orders = new ArrayList<>();

    public int getItemid() {
        return itemid;
    }

    public void setItemid(int itemid) {
        this.itemid = itemid;
    }

    public String getItemname() {
        return itemname;
    }

    public void setItemname(String itemname) {
        this.itemname = itemname;
    }

    public double getItemprice() {
        return itemprice;
    }

    public void setItemprice(double itemprice) {
        this.itemprice = itemprice;
    }

    public int getItemnum() {
        return itemnum;
    }

    public void setItemnum(int itemnum) {
        this.itemnum = itemnum;
    }

    public List<Orders> getOrders() {
        return orders;
    }

    public void setOrders(List<Orders> orders) {
        this.orders = orders;
    }
}
